package com.roubsite.admin.bean;

import java.util.List;

public class MenuTree {
	// 节点的ID
	private String id;
	// 上级节点的ID（可为空，必要时候使用）
	private String parentId;
	// 节点显示的文字
	private String text;
	// 节点的图标
	private String icon;
	// 节点状态，有两个值 'open' or 'closed', 默认为'open'.当为‘closed’时说明此节点下有子节点否则此节点为叶子节点
	private String state;
	// 是否显示选择框 true不显示，false显示
	private boolean nocheck = false;
	// 是否勾选选中
	private boolean checked = false;
	// 是否展开该节点
	private boolean open = false;
	// 节点中其他属性的集合
	private String attributes;
	// 子节点集合
	private List<MenuTree> children;
	// 节点url
	private String url;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public boolean getChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public String getAttributes() {
		return attributes;
	}

	public void setAttributes(String attributes) {
		this.attributes = attributes;
	}

	public List<MenuTree> getChildren() {
		return children;
	}

	public void setChildren(List<MenuTree> children) {
		this.children = children;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public boolean isNocheck() {
		return nocheck;
	}

	public void setNocheck(boolean nocheck) {
		this.nocheck = nocheck;
	}

	public boolean isOpen() {
		return open;
	}

	public void setOpen(boolean open) {
		this.open = open;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
}
